<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSalesmanRegisterTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('salesman_register', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('salesmanid')->comment('地推人员id');
            $table->string('registermobile',20)->comment('注册手机号');
            $table->decimal('getmoney',16, 2)->comment('注册金额');
            $table->tinyInteger('isvalid')->default(1)->comment('是否有效');
            $table->tinyInteger('status')->default(0)->comment('是否结款');
            $table->string('info', 256)->nullable()->comment('预留');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('salesman_register');
    }
}
